﻿{% extends "base.html" %}

{% block scripts %}
{% endblock %}

{% block content %}
    <h1>Редактировать Заказы</h1>

    <div class="edit_oreders">
        <form class="form_2 " action="" method="post">

            {% if form.subj.errors %}
            <dt><p class="error_message">{{ form.subj.errors|striptags }}</p></dt>
            {% endif %}
            <h2 class="block_header">
                <label for="id_subj">Заголовок</label>
            </h2>
            <input id="id_subj" name="subj" class="text_input input_big" type="text" value="{{ order.subj }}">

            {% if form.text.errors %}
            <dt><p class="error_message">{{ form.text.errors|striptags }}</p></dt>
            {% endif %}
            <h2 class="block_header">
                <label for="id_text">Описание</label>
            </h2>
            <textarea id="id_text" name="text" cols="80" rows="5">{{ order.text }}</textarea>

            {% if form.price.errors %}
            <dt><p class="error_message">{{ form.price.errors|striptags }}</p></dt>
            {% endif %}
            <h2 class="block_header">
                <label for="id_price">Бюджет <span class="description">(не обязательно)</span></label>
            </h2>
            <input id="id_price" name="price" class="text_input" type="text" value="{% if order.price %}{{ order.price }}{% endif %}">

            <h2 class="block_header">
                <label for="id_price">Активен</label>
                <input id="id_active" name="active" type="checkbox" {% if order.active %}checked="checked"{% endif %}>
            </h2>

            <div class="buttons"><input class="button" type="submit" value="Сохранить"></div>
        </form>

    </div>

{% endblock %}